package com.typy.www.tpay.constance;

import android.os.Environment;

import com.typy.www.tpay.R;
import com.typy.www.tpay.util.Logutil;
import com.typy.www.tpay.util.StringUtil;

/**
 * Created by 13799 on 2018/6/2.
 */

public class Constance {

    public static final String KEY = "8aaf09055b7aef71015b7b12d7e50003";
    public static final int SUCCESE = 200;//成功码
    public static final int TOKENINVALID = 400;//token失效
    public static final int RETOKENINVALID = 401;//refreshtoken失效
    public static final String TOKENINVALIDMSG = "token失效";//token失效
    public static final String RETOKENINVALIDMSG = "refreshToken失效";//refreshtoken失效
    public static final String WRONGPWD = "支付密码不正确!";
//    public static final String PICPATH= Environment.getExternalStorageDirectory().getCanonicalPath();

    public static final int ERRCOD = 906; //错误码，数据提交错误
    public static final int LIMT = 10;
    public static final int CHANGENICKNAME = 1;
    public static final int CHANGEPASSWORD = 2;
    public static final int CHANGEPAYPASSWORD = 3;
    public static final int REFINDPASSWORD = 4;
    public static final int REFINDPAYPASSWORD = 5;
    public static final int VERSIONACTIVITY = 6;
    public static final int ABOUTACTVITY = 7;
    public static String token;

    public static void setToken(String t) {
        if (!StringUtil.isEmpty(t)) {
            token = t;
        }
    }

    //测试站
    public static String COMMON_URL = "http://www.zhaodui.com.cn/jeecg-boot";

    //正式站
//    public static String COMMON_URL = "http://www.zpaycoin.net/api";
    public static void setBaseUrl(String baseUrl) {
        if (!StringUtil.isEmpty(baseUrl)) {
            COMMON_URL = baseUrl;
        }
    }

    //登录
    public static final String LOGIN = "/sys/phoneLoginpara";
    //获取验证码
    public static final String GETCODE = "/sys/smspara";
    //用户注册
    public static final String REGISTER = "/api/user/register";
    //重置登录密码
    public static final String RESETPWD = "/api/user/resetPwd ";
    //获取用户自己信息
    public static final String MYSELFINFO = "/api/user/myselfInfo";
    //获取用户自己信息
    public static final String NEWTOKEN = "/api/user/getNewToken";
    //修改昵称
    public static final String UPDATANICKNAME = "/api/user/updateNickName";
    //修改支付密码
    public static final String UPDATAPASSWORD = "/api/user/updatePwd";
    //修改昵称
    public static final String UPDATAPAYPASSWORD = "/api/user/updatePayPwd";
    //重置支付密码
    public static final String RESETPAYPWD = "/api/user/resetPayPwd";
    //退出登录
    public static final String LOGOUT = "/api/user/exit";
    //提交投诉建议
    public static final String SUGGESTSAVE = "/api/suggest/save";
    //获得某个用户的基本信息
    public static final String USERINFO = "/api/user/getUserInfo";
    //激活
    public static final String BUSINESSATIVE = "/api/business/active";
    //公告列表
    public static final String NOTICELIST = "/api/info/noticeList";
    //关于
    public static final String ABOUT = "/api/info/about";
    //版本
    public static final String VERSION = "/api/info/version";
    //上传
    public static final String UPLOAD = "/api/upload/pic";
    //激活记录
    public static final String ACTIVELIST = "/api/business/activeList";
    //保存银行卡
    public static final String SAVEBANK = "/api/userBank/save";
    //银行卡列表
    public static final String BANKLIST = "/api/userBank/list";
    //默认银行卡
    public static final String BANKDEFAULT = "/api/userBank/getDefault";
    //删除银行卡
    public static final String DELBANK = "/api/userBank/del";
    //余额记录
    public static final String AMOUNTLIST = "/api/business/amountList";
    //兑换积分记录
    public static final String EXCHANGELIST = "/api/business/exchangeList ";
    //兑换积分
    public static final String EXCHANGEPOINT = "/api/business/exchangePoint";
    //积分记录
    public static final String POINTLIST = "/api/business/pointList";
    //分享记录
    public static final String SHARELIST = "/api/business/shareList";
    //分享分记录
    public static final String SHAREPOINTLIST = "/api/business/sharePointList";
    //转入记录
    public static final String TURNINLIST = "/api/business/turnInList";
    //转出
    public static final String TURNOUT = "/api/business/turnOut";
    //检查版本
    public static final String CHECKVERSION = "/api/version/new";
    //回复列表
    public static final String REPLAYLIST = "/api/suggest/replyList";
    //转出列表
    public static final String TURNOUTLIST = "/api/business/turnOutList";
    //设为默认银行卡
    public static final String BANKSTAUS = "/api/userBank/setStatus";
    //签到
    public static final String SIGN = "/api/business/sign";
    //Z宝说明
    public static final String ZPAYREMARK = "/api/info/zpayRemark";
    //轮播图
    public static final String BANNERLIST = "/api/banner/list";
    //我的数字资产
    public static final String MYACCOUNT = "/api/fund/myAccount";
    //向某人买
    public static final String FUNDBUY = "/api/fund/buy";
    //购买ico
    public static final String BUYICO = "/api/fund/buyIco";
    //ICO购买记录
    public static final String BUYICOLIST = "/api/fund/buyIcoList";
    //取消订单
    public static final String CANCELORDER = "/api/fund/cancelOrder";
    //ico列表
    public static final String ICOLIST = "/api/fund/icoList";
    //数字货币货币列表
    public static final String ICOTYPELIST = "/api/fund/icoTypeList";
    //数字币转入记录
    public static final String ICOTURNINLIST = "/api/fund/iconTurnInList";
    //数字币转出第二步
    public static final String ICOTURNOUTSTEP2 = "/api/fund/iconTurnOut";
    //交易记录
    public static final String MYBILL = "/api/fund/myBill";
    ;
    //数字币转出记录
    public static final String ICOTURNOUTLIST = "/api/fund/iconTurnOutList";
    //我的订单(已完成)
    public static final String MYORDERFINISH = "/api/fund/myOrderFinish";
    //我的订单(出售中)
    public static final String MYORDERNOW = "/api/fund/myOrderNow";
    //保存购买订单
    public static final String SAVEBUYORDER = "/api/fund/saveBuyOrder";
    //保存出售订单
    public static final String SAVESELLERORDER = "/api/fund/saveSellerOrder ";
    //向某人出售
    public static final String SELLER = "/api/fund/seller";
    //我要买列表
    public static final String TOBUYLIST = "/api/fund/toBuyList";
    //数字币转出第一步
    public static final String ICOTURNOUTSTEP1 = "/api/fund/toIconTurnOut";
    //我要卖列表
    public static final String TOSELLERLIST = "/api/fund/toSellerList";
    //日线
    public static final String DAYLINE = "/api/fund/dayLine";
    //时线
    public static final String HOURLINE = "/api/fund/hourLine";
    //分线
    public static final String MINLINE = "/api/fund/minLine";
    //获得今日红包金额
    public static final String TODAYREDMONEY = "/api/business/getTodayRedMoney";
    //保存红包
    public static final String SAVEREDMONEY = "/api/business/saveRedMoney";
    //Z宝收益记录
    public static final String ZBAOINCOMELIST = "/api/zbao/incomeList";
    //我的Z宝账户信息
    public static final String ZBAOACCOUNT = "/api/zbao/myAccount";
    //转入Z宝
    public static final String ZBAOTURNIN = "/api/zbao/turnIn";
    //Z宝转入记录
    public static final String ZBAOTURNINLIST = "/api/zbao/turnInList";
    //Z宝释放记录
    public static final String ZBAOTURNOUTLIST = "/api/zbao/turnOutList";


    //买入
    public static final String BUY = "/api/buy/buy";
    //买入中心
    public static final String BUYCENTER = "/api/buy/buyCenter";
    //已完成订单(买入)
    public static final String BUYFINISHLIST = "/api/buy/buyFinishList ";
    //买入记录
    public static final String BUYRECORDLIST = "/api/buy/buyRecordList ";
    // 取消购买单(未选择收款人)
    public static final String CANCELBUYNOSELECT = "/api/buy/cancelBuyNoSelect ";
    //取消购买单(已选择收款人)
    public static final String CANCELBUYSELECT = "/api/buy/cancelBuySelect ";
    //创建买入订单
    public static final String CREATEBUY = "/api/buy/createBuy ";
    //获得收款人银行信息
    public static final String GETRECEIVEBANKMSG = "/api/buy/getReceiveBankMsg ";
    //未选择收款人
    public static final String NOSELECTRECEIVELIST = "/api/buy/noSelectReceiveList ";
    //打款
    public static final String BUYPAY = "/api/buy/pay ";
    //已选择收款人
    public static final String SELECTRECEIVELIST = "/api/buy/selectReceiveList ";
    // 确认打款列表
    public static final String SUREPAYLIST = "/api/buy/surePayList ";

    //余额买卖选项
    public static final String AMOUNTITEMLIST = "/api/trade/amountItemList";
    //投诉
    public static final String COMPLAINT = "/api/trade/complaint ";
    //投诉详情
    public static final String COMPLAINTDETAIL = "/api/trade/complaintDetail ";
    //订单详情网址：html/trade/detail?fdOrderId=
    public static final String ORDERDETAILURL = "/api/trade/orderDetailUrl ";

    //取消出售单(未选择打款人)
    public static final String CANCELSELLERNOSELECT = "/api/seller/cancelSellerNoSelect ";
    //创建卖出订单
    public static final String CREATESELLER = "/api/seller/createSeller ";
    //获得打款信息
    public static final String GERPAYMESSAGE = "/api/seller/getPayMessage ";
    //未选择付款人
    public static final String NOSELECTPAYLIST = "/api/seller/noSelectPayList ";
    //已选择付款人
    public static final String SELECTPAYLIST = "/api/seller/selectPayList ";
    //卖出
    public static final String SELLERSELLER = "/api/seller/seller ";
    //卖出中心
    public static final String SELLERCENTER = "/api/seller/sellerCenter ";
    //已完成订单(卖出)
    public static final String SELLERFINISHLIST = "/api/seller/sellerFinishList ";
    //卖出记录
    public static final String SELLERRECORDLIST = "/api/seller/sellerRecordList";
    //确认收款
    public static final String SURERECEIVE = "/api/seller/sureReceive ";
    //待确认收款列表
    public static final String WILLSURERECEIVELIST = "/api/seller/willSureReceiveList ";


    //登录
    public static String getLoginURL() {
        return COMMON_URL + LOGIN;
    }

    //验证码 fdType 0表示注册验证码 1表示忘记密码 2表示修改支付密码
    public static String getGetcodeURL() {
        return COMMON_URL + GETCODE;
    }

    //注册
    public static String getRegisterURL() {
        return COMMON_URL + REGISTER;
    }

    //重置登录密码
    public static String getResetpwdURL() {
        return COMMON_URL + RESETPWD;
    }

    //重置支付密码
    public static String getResetpaypwdURL() {
        return COMMON_URL + RESETPAYPWD;
    }

    //获取用户自己信息
    public static String getMyselfinfoURL() {
        return COMMON_URL + MYSELFINFO;
    }

    //获取用户自己信息
    public static String getNewtokenURL() {
        return COMMON_URL + NEWTOKEN;
    }

    //修改昵称
    public static String getUpdatanicknameURL() {
        return COMMON_URL + UPDATANICKNAME;
    }

    //修改登录密码
    public static String getUpdatapasswordURL() {
        return COMMON_URL + UPDATAPASSWORD;
    }

    //修改昵称
    public static String getUpdatapaypasswordURL() {
        return COMMON_URL + UPDATAPAYPASSWORD;
    }

    //退出登录
    public static String getLogoutURL() {
        return COMMON_URL + LOGOUT;
    }

    //提交投诉建议
    public static String getSuggestsaveURL() {
        return COMMON_URL + SUGGESTSAVE;
    }

    //获得某个用户的基本信息
    public static String getUserinfoURL() {
        return COMMON_URL + USERINFO;
    }

    //激活
    public static String getBusinessativeURL() {
        return COMMON_URL + BUSINESSATIVE;
    }

    //公告列表
    public static String getNoticelistURL() {
        return COMMON_URL + NOTICELIST;
    }

    //关于
    public static String getAboutURL() {
        return COMMON_URL + ABOUT;
    }

    //版本
    public static String getVersionURL() {
        return COMMON_URL + VERSION;
    }

    //上传
    public static String getUploadURL() {
        return COMMON_URL + UPLOAD;
    }

    //激活记录
    public static String getActivelistURL() {
        return COMMON_URL + ACTIVELIST;
    }

    //保存银行卡
    public static String getSavebankURL() {
        return COMMON_URL + SAVEBANK;
    }

    //银行卡列表
    public static String getBanklistURL() {
        return COMMON_URL + BANKLIST;
    }

    //删除银行卡
    public static String getDelbankURL() {
        return COMMON_URL + DELBANK;
    }

    //余额记录
    public static String getAmountlistURL() {
        return COMMON_URL + AMOUNTLIST;
    }

    //兑换积分记录
    public static String getExchangelistURL() {
        return COMMON_URL + EXCHANGELIST;
    }

    //兑换积分
    public static String getExchangepointURL() {
        return COMMON_URL + EXCHANGEPOINT;
    }

    //积分记录
    public static String getPointlistURL() {
        return COMMON_URL + POINTLIST;
    }

    //分享记录
    public static String getSharelistURL() {
        return COMMON_URL + SHARELIST;
    }

    //分享分记录
    public static String getSharepointlistURL() {
        return COMMON_URL + SHAREPOINTLIST;
    }

    //转入记录
    public static String getTurninlistURL() {
        return COMMON_URL + TURNINLIST;
    }

    //转出
    public static String getTurnoutURL() {
        return COMMON_URL + TURNOUT;
    }

    //检查版本
    public static String getCheckversionURL() {
        return COMMON_URL + CHECKVERSION;
    }

    //回复记录
    public static String getReplaylistURL() {
        return COMMON_URL + REPLAYLIST;
    }

    //转出记录
    public static String getTurnoutlistURL() {
        return COMMON_URL + TURNOUTLIST;
    }

    //转出记录
    public static String getBankstausURL() {
        return COMMON_URL + BANKSTAUS;
    }

    //Z宝说明
    public static String getZpayremarkURL() {
        return COMMON_URL + ZPAYREMARK;
    }

    //签到
    public static String getSignURL() {
        return COMMON_URL + SIGN;
    }

    //轮播图
    public static String getBannerlistURL() {
        return COMMON_URL + BANNERLIST;
    }


    //我的数字资产
    public static String getMyaccountURL() {
        return COMMON_URL + MYACCOUNT;
    }

    //向某人买
    public static String getFundbuyURL() {
        return COMMON_URL + FUNDBUY;
    }

    //购买ico
    public static String getBuyicoURL() {
        return COMMON_URL + BUYICO;
    }

    //ICO购买记录
    public static String getBuyicolistURL() {
        return COMMON_URL + BUYICOLIST;
    }

    //取消订单
    public static String getCancelorderURL() {
        return COMMON_URL + CANCELORDER;
    }

    //ico列表
    public static String getIcolistURL() {
        return COMMON_URL + ICOLIST;
    }

    //数字货币货币列表
    public static String getIcotypelistURL() {
        return COMMON_URL + ICOTYPELIST;
    }

    //数字币转入记录
    public static String getIcoturninlistURL() {
        return COMMON_URL + ICOTURNINLIST;
    }

    //数字币转出第二步
    public static String getIcoturnoutstep2URL() {
        return COMMON_URL + ICOTURNOUTSTEP2;
    }

    //交易记录
    public static String getMybillURL() {
        return COMMON_URL + MYBILL;
    }

    //我的订单(已完成)
    public static String getMyorderfinishURL() {
        return COMMON_URL + MYORDERFINISH;
    }

    //我的订单(出售中)
    public static String getMyordernowURL() {
        return COMMON_URL + MYORDERNOW;
    }

    //保存购买订单
    public static String getSavebuyorderURL() {
        return COMMON_URL + SAVEBUYORDER;
    }

    //保存出售订单
    public static String getSavesellerorderURL() {
        return COMMON_URL + SAVESELLERORDER;
    }

    //向某人出售
    public static String getSellerURL() {
        return COMMON_URL + SELLER;
    }

    //我要买列表
    public static String getTobuylistURL() {
        return COMMON_URL + TOBUYLIST;
    }

    //数字币转出第一步
    public static String getIcoturnoutstep1URL() {
        return COMMON_URL + ICOTURNOUTSTEP1;
    }

    //我要卖列表
    public static String getTosellerlistURL() {
        return COMMON_URL + TOSELLERLIST;
    }

    //数字币转出记录
    public static String getIcoturnoutlistURL() {
        return COMMON_URL + ICOTURNOUTLIST;
    }

    //日线
    public static String getDaylineURL() {
        return COMMON_URL + DAYLINE;
    }

    //时线
    public static String getHourlineURL() {
        return COMMON_URL + HOURLINE;
    }

    //分线
    public static String getMinlineURL() {
        return COMMON_URL + MINLINE;
    }

    //获得今日红包金额
    public static String getTodayredmoneyURL() {
        return COMMON_URL + TODAYREDMONEY;
    }

    //保存红包
    public static String getSaveredmoneyURL() {
        return COMMON_URL + SAVEREDMONEY;
    }

    //Z宝收益记录
    public static String getZbaoincomelistURL() {
        return COMMON_URL + ZBAOINCOMELIST;
    }

    //我的Z宝账户信息
    public static String getZbaoaccountURL() {
        return COMMON_URL + ZBAOACCOUNT;
    }

    //转入Z宝
    public static String getZbaoturninURL() {
        return COMMON_URL + ZBAOTURNIN;
    }

    //Z宝转入记录
    public static String getZbaoturninlistURL() {
        return COMMON_URL + ZBAOTURNINLIST;
    }

    //Z宝释放记录
    public static String getZbaoturnoutlistURL() {
        return COMMON_URL + ZBAOTURNOUTLIST;
    }
    //买入
    public static String getBuyURL() {
        return COMMON_URL + BUY;
    }
    //买入中心
    public static String getBuycenterURL() {
        return COMMON_URL + BUYCENTER;
    }
    //已完成订单(买入)
    public static String getBuyfinishlistURL() {
        return COMMON_URL + BUYFINISHLIST;
    }

    public static String getURL() {
        return COMMON_URL + BUY;
    }
    //买入记录
    public static String getBuyrecordlistURL() {
        return COMMON_URL + BUYRECORDLIST;
    }
    // 取消购买单(未选择收款人)
    public static String getCancelbuynoselectURL() {
        return COMMON_URL + CANCELBUYNOSELECT;
    }
    //取消购买单(已选择收款人)
    public static String getCancelbuyselectURL() {
        return COMMON_URL + CANCELBUYSELECT;
    }
    //创建买入订单
    public static String getCreatebuyURL() {
        return COMMON_URL + CREATEBUY;
    }
    //获得收款人银行信息
    public static String getGetreceivebankmsgURL() {
        return COMMON_URL + GETRECEIVEBANKMSG;
    }
    //未选择收款人
    public static String getNoselectreceivelistURL() {
        return COMMON_URL + NOSELECTRECEIVELIST;
    }
    //打款
    public static String getBuypayURL() {
        return COMMON_URL + BUYPAY;
    }
    //已选择收款人
    public static String getSelectreceivelistURL() {
        return COMMON_URL + SELECTRECEIVELIST;
    }
    // 确认打款列表
    public static String getSurepaylistURL() {
        return COMMON_URL + SUREPAYLIST;
    }

    //余额买卖选项
    public static String getAmountitemlistURL() {
        return COMMON_URL + AMOUNTITEMLIST;
    }
    //投诉
    public static String getComplaintURL() {
        return COMMON_URL + COMPLAINT;
    }
    //投诉详情
    public static String getComplaintdetailURL() {
        return COMMON_URL + COMPLAINTDETAIL;
    }
    //订单详情网址：html/trade/detail?fdOrderId=
    public static String getOrderdetailurlURL() {
        return COMMON_URL + ORDERDETAILURL;
    }

    //取消出售单(未选择打款人)
    public static String getCancelsellernoselectURL() {
        return COMMON_URL + CANCELSELLERNOSELECT;
    }
    //创建卖出订单
    public static String getCreatesellerURL() {
        return COMMON_URL + CREATESELLER;
    }
    //获得打款信息
    public static String getGerpaymessageURL() {
        return COMMON_URL + GERPAYMESSAGE;
    }
    //未选择付款人
    public static String getNoselectpaylistURL() {
        return COMMON_URL + NOSELECTPAYLIST;
    }
    //已选择付款人
    public static String getSelectpaylistURL() {
        return COMMON_URL + SELECTPAYLIST;
    }
    //卖出
    public static String getSellersellerURL() {
        return COMMON_URL + SELLERSELLER;
    }
    //卖出中心
    public static String getSellercenterURL() {
        return COMMON_URL + SELLERCENTER;
    }
    //已完成订单(卖出)
    public static String getSellerfinishlistURL() {
        return COMMON_URL + SELLERFINISHLIST;
    }
    //卖出记录
    public static String getSellerrecordlistURL() {
        return COMMON_URL + SELLERRECORDLIST;
    }
    //确认收款
    public static String getSurereceiveURL() {
        return COMMON_URL + SURERECEIVE;
    }
    //待确认收款列表
    public static String getWillsurereceivelistURL() {
        return COMMON_URL + WILLSURERECEIVELIST;
    }
    //默认银行卡
    public static String getBankdefaultURL() {
        return COMMON_URL + BANKDEFAULT;
    }
}
